import { createRouter, createWebHistory } from 'vue-router';
import BASIC_ROUTES from '@/router/basic.routes';
import EXAMPLE_ROUTES from '@/router/example.routes';

export * from '@/router/example.routes';

export default createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [...BASIC_ROUTES, ...(import.meta.env.DEV ? EXAMPLE_ROUTES : [])],
});

export { BASIC_ROUTES, EXAMPLE_ROUTES };
